//
//  HEIMSession.m
//  HealthFamily
//
//  Created by 吴欧 on 2021/3/5.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "HEIMSession.h"

@implementation HEIMSession

- (instancetype)initWithSession:(NSString *)sessionId type:(HEIMSessionType)sessionType {
    if (self = [super init]) {
        _sessionId = sessionId;
        _sessionType = sessionType;
    }
    return self;
}

+ (instancetype)session:(NSString *)sessionId type:(HEIMSessionType)sessionType {
    HEIMSession *session = [[HEIMSession alloc] initWithSession:sessionId type:sessionType];
    return session;
}

/// 防止外部使用KVC的方式直接修改 readonly修饰的变量值  【KVC实际修改的是'_<key>'的实例变量】
+ (BOOL)accessInstanceVariablesDirectly {
    return NO;
}

@end
